﻿<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="div">
			<img id="picture1" src='../img/图片切换/1.jpg'>
		</div>
		<button type="button" onclick="Switchover();">开始</button>
	</body>
	<script type="text/javascript">
		function Switchover(){
			var num = 1;
			var myInterval = setInterval(function(){
				if(num == 9){
					clearInterval(myInterval);
				}
				var pictureinfo = document.getElementById('picture1');
				pictureinfo.src = '../img/图片切换/'+num+'.jpg';
				num++;
			},1000)
		}
	</script>
</html>